﻿package ca.newcommerce.youtube.events 
{
	import ca.newcommerce.youtube.data.DirectUploadData;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Martin Legris ( http://blog.martinlegris.com )
	 */
	public class DirectUploadEvent extends Event
	{
		public static const TOKEN_READY:String = "direct_upload_token_ready_event";
		
		protected var _requestId:Number;
		protected var _data:DirectUploadData;
		
		public function get data():DirectUploadData { return _data; }		
		public function get requestId():Number { return _requestId; }
		
		public function DirectUploadEvent(type:String, data:DirectUploadData, requestId:Number)
		{
			super(type);
			_data = data;
			_requestId = requestId;
		}
	}
}